package com.github.zj.dreamly.guava.eventbus.listeners;

import com.google.common.eventbus.Subscribe;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author 苍海之南
 */
public abstract class AbstractListener {

	private final static Logger LOGGER = LoggerFactory.getLogger(AbstractListener.class);

	@Subscribe
	public void commonTask(String event) {
		if (LOGGER.isInfoEnabled()) {
			LOGGER.info("The event [{}] will be handle by {}.{}", event, this.getClass().getSimpleName(), "commonTask");
		}
	}
}
